package VN.EDU.IMIC.DEVELOPER.TRANTHITHANHNGA.EXAM01.TASK1;

import java.util.Scanner;

public class Trapezium_Views {

	
	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		System.out.println("+input bigside: ");
		double bigside = in.nextDouble();
		System.out.println("+input smallside: ");
		double smallside = in.nextDouble();
		System.out.println("+input side1: ");
		double side1 = in.nextDouble();
		System.out.println("+input side2: ");
		double side2 = in.nextDouble();
		System.out.println("+input height: ");
		double height = in.nextDouble();
		
		Object obj = new Trapezium_Entity();
		Trapezium_Entity Obj = (Trapezium_Entity)obj;
		Obj.setBigside(bigside); Obj.setSmallside(smallside); Obj.setSide1(side1); Obj.setSide2(side2);
		Obj.setHeight(height);
		
		Trapezium_Controllers cObj = new Trapezium_Controllers(Obj);
		System.out.printf("+Area: %8.2f \n", cObj.getArea(Obj));
		System.out.printf("+Perimeter: %8.2f \n",cObj.getPerimeter(Obj));
	}

}
